#ifndef _AL_YUN_H_
#define _AL_YUN_H_

#include "main.h"
#include "cJSON.h"

#define		 YUN_USERNAME		"68a82275d582f2001847e309_lock1"                                         // �û���
#define		 YUN_PASSWD			"f0ccbacdd8bfb1c2f2b4f0a8b95750995b1a13d39459c56ca272b1fa539271c9"           // MQTT ����

#define		 YUNCLIENTLD			"68a82275d582f2001847e309_lock1_0_0_2025082503"				// �ͻ�id
#define		 YUN_MQTT_HOSTURL	"b4203b6dc6.st1.iotda-device.cn-north-4.myhuaweicloud.com"			// mqtt���ӵ���ַ
#define		 YUN_PORT			"1883"				// �˿�

#define      YUN_TOPIC_SET        "$oc/devices/68a82275d582f2001847e309_lock1/sys/messages/down"

#define      YUN_TOPIC           "/sys/a1L40OoGWkO/test1/thing/service/property/set"
#define      YUN_TOPIC_POST         "$oc/devices/68a82275d582f2001847e309_lock1/sys/properties/report"




int Huawei_Yun_Init(void);

void Huawei_Yun_Topic(void);

void Huawei_Yun_GetRCV(void);

int Huawei_Yun_Send(const char *data);

int Huawei_Yun_Send_Temp_Lock(int lock_state,float temp);

#endif
